﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/Site_Main.Master" AutoEventWireup="true"
    CodeBehind="account_modifypswd.aspx.cs" Inherits="RegisterationSystem.Space_Education.account_modifypswd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
      <!--
        $(function () {
            //设置导航位置
            setLocalToParent(1);
            $('#<%= ReNewAccountPswd.ClientID %>').validatebox({
                required: true,
                validType: "equals['#<%= NewAccountPswd.ClientID%>']"
            });
        });
        //-->

        //验证
        function submitForm() {
            if (!$("#aspnetForm").form("validate")) {
                return false;
            } else {
                return true;
            }
        }
        //验证密码和重新输入密码一致.
        $.extend($.fn.validatebox.defaults.rules, {
            equals: {
                validator: function (value, param) {
                    return value == $(param[0]).val();
                },
                message: '两次新密码不一样'
            }
        }); 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Place_Local" runat="server">
    <div class="localTitle">
        <a>密码管理</a>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="loadheight">
        <table width="100%%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td bgcolor="#FFFFFF">
                    <table width="100%%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table width="100%%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="cen_R_dh">
                                <strong>密码修改</strong>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div style="margin-top: 5px">
                                </div>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:15px; margin-left:15px">
                                    <tr>
                                        <td width="8%" height="20" align="right">
                                            用户名：
                                        </td>
                                        <td width="23%" id="username" runat="server">
                                        </td>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                        <td height="20">
                                        &nbsp;
                                    </tr>
                                    <tr>
                                        <td height="1">
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="20" align="right">
                                            原密码：
                                        </td>
                                        <td>
                                            <input type="Password" id="OldAccountPswd" maxlength="16" class="easyui-validatebox c_txt"
                                                data-options="required:true" style="width: 170px;" runat="server" />
                                        </td>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="1">
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="20" align="right">
                                            新密码：
                                        </td>
                                        <td>
                                            <input id="NewAccountPswd" type="Password" style="width: 170px;" runat="server" maxlength="12"
                                                class="easyui-validatebox c_txt" data-options="required:true" />
                                        </td>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                        <td height="20">
                                        &nbsp;
                                    </tr>
                                    <tr>
                                        <td height="1">
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="20" align="right">
                                            确认新密码：
                                        </td>
                                        <td>
                                            <input type="Password" id="ReNewAccountPswd" style="width: 170px;" runat="server"
                                                maxlength="12" class="c_txt" />
                                        </td>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                        <td height="20">
                                        &nbsp;
                                    </tr>
                                    <tr>
                                        <td height="1">
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:Button ID="btnadd" runat="server" Text="修改" class="anniu" Width="73" Height="27"
                                                OnClick="btnadd_Click" OnClientClick="return submitForm()" />
                                        </td>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                        <td height="20">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
